{extend name="PublicBase/showBase" /}

{block name="body"}
<div class="main">
    <div class="row">
        <div class="col-md-12">
            <section class="tile color transparent-black">
                <div class="tile-header">
                    <h1>{:lang('WxCdLb')}</h1>
                    <div class="controls">
                        <a href="{:url('WechatMenu/showAdd')}"><i class="fa fa-plus"></i></a>
                        <a href="{:url('WechatMenu/showList')}"><i class="fa fa-refresh"></i></a>
                    </div>
                </div>
                <div class="tile-widget bg-transparent-black-2">
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="form-group col-sm-2">
                                <button type="button" class="btn btn-{:config('CNF_BTNCOLOR')} ajax-get" style="width: 100%" data-url="{:url('WechatMenu/showMake')}">{:lang('WxCdZdyCj')}</button>
                            </div>
                            <div class="form-group col-sm-2">
                                <button type="button" class="btn btn-{:config('CNF_BTNCOLOR')} ajax-get" style="width: 100%" data-url="{:url('WechatMenu/showDele')}">{:lang('WxCdZdySc')}</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="table-responsive">
                    <div class="tile-body nopadding">
                        <table class="table table-bordered table-custom">
                            <thead>
                            <tr>
                                <th>
                                    <div class="checkbox check-transparent">
                                        <input type="checkbox" id="allchck">
                                        <label for="allchck"></label>
                                    </div>
                                </th>
                                <th>{:lang('WxCdId')}</th>
                                <th>{:lang('WxCdMc')}</th>
                                <th>{:lang('WxCdLx')}</th>
                                <th>{:lang('WxCdZt')}</th>
                                <th>{:lang('WxCdPx')}</th>
                                <th>{:lang('XtLbGdCz')}</th>
                            </tr>
                            </thead>
                            <tbody>
                            {notempty name="Lists"}
                                {volist name="Lists" id="vo" key="key"}
                                    <tr>
                                        <td>
                                            <div class="checkbox check-transparent">
                                                <input type="checkbox" value="{$vo.menu_id}" id="chck{$key}">
                                                <label for="chck{$key}"></label>
                                            </div>
                                        </td>
                                        <td>{$vo.menu_id}</td>
                                        <td style="text-align:left;padding-left:{$vo.menu_left}px">{$vo.menu_line}{$vo.menu_title}</td>
                                        <td>{:lang('WxCdLx'.$vo['menu_type'])}</td>
                                        <td>{:lang('WxCdZt'.$vo['menu_state'])}</td>
                                        <td>{$vo.menu_sort}</td>
                                        <td class="actions">
                                            <a class="edit" href="{:url('WechatMenu/showEdit',array('id'=>$vo['menu_id']))}">
                                                <i class="fa fa-pencil fa-lg fa-fw"></i>
                                            </a>
                                            <a class="delete ajax-handle" href="javascript:void(0);" data-url="{:url('WechatMenu/showDel')}" data-ids="{$vo.menu_id}">
                                                <i class="fa fa-trash fa-lg fa-fw"></i>
                                            </a>
                                        </td>
                                    </tr>
                                {/volist}
                            {else/}
                                <tr>
                                    <td colspan="20">{:lang('XtLbZwSj')}</td>
                                </tr>
                            {/notempty}
                            </tbody>
                        </table>
                    </div>
                    <div class="col-sm-12">&nbsp;</div>
                </div>
                <div class="tile-footer bg-transparent-black-2 rounded-bottom-corners">
                    <div class="row">
                        <div class="col-sm-12 text-center"></div>
                    </div>
                </div>
            </section>
        </div>
    </div>
</div>
{/block}

{block name="script"}
    <script>
        $(function(){
            
        })
    </script>
{/block}